<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加广告分类</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
    <h1>添加广告分类</h1>
    <a href="/admin/categories" class="btn btn-secondary mb-3">返回分类列表</a>

    <form th:action="@{/admin/categories/save}" method="post">
        <div class="mb-3">
            <label for="name" class="form-label">分类名称</label>
            <input type="text" class="form-control" id="name" name="name" required>
        </div>

        <div class="mb-3">
            <label for="description" class="form-label">分类描述</label>
            <textarea class="form-control" id="description" name="description" rows="3"></textarea>
        </div>

        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</div>
</body>
</html>